package com.lxmes.system.domain;

import com.lxmes.common.annotation.Excel;
import com.lxmes.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 审批任务对象 sys_sp_task
 * 
 * @author zhangzhiyu
 * @date 2023-06-28
 */
@ApiModel(value = "SysSpTask", description = "审批任务对象")    
public class SysSpTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty("主键")
    private Long id;

    /** 工厂名称 */
    @Excel(name = "工厂名称")
    @ApiModelProperty("工厂名称")
    private String factoryName;

    /** 工厂代码 */
    @Excel(name = "工厂代码")
    @ApiModelProperty("工厂代码")
    private String factoryCode;

    /** 任务编号 */
    @Excel(name = "任务编号")
    @ApiModelProperty("任务编号")
    private String taskId;

    /** 业务单号 */
    @Excel(name = "业务单号")
    @ApiModelProperty("业务单号")
    private String danhao;

    /** 发起人姓名 */
    @Excel(name = "发起人姓名")
    @ApiModelProperty("发起人姓名")
    private String userName;

    /** 发起人编号 */
    @Excel(name = "发起人编号")
    @ApiModelProperty("发起人编号")
    private Long userId;

    /** 发起部门编码 */
    @Excel(name = "发起部门编码")
    @ApiModelProperty("发起部门编码")
    private Long deptId;

    /** 审批人工号 */
    @Excel(name = "审批人工号")
    @ApiModelProperty("审批人工号")
    private Long spUserId;

    /** 审批人姓名 */
    @Excel(name = "审批人姓名")
    @ApiModelProperty("审批人姓名")
    private String spUserName;

    /** 审批流编码 */
    @Excel(name = "审批流编码")
    @ApiModelProperty("审批流编码")
    private String spCode;

    /** 审批流名称 */
    @Excel(name = "审批流名称")
    @ApiModelProperty("审批流名称")
    private String spName;

    /** 审批节点 */
    @Excel(name = "审批节点")
    @ApiModelProperty("审批节点")
    private String spSolt;

    /** 审批状态 */
    @Excel(name = "审批状态")
    @ApiModelProperty("审批状态")
    private String spFlag;

    /** 审批建议 */
    @Excel(name = "审批建议")
    @ApiModelProperty("审批建议")
    private String spRemark;

    /** 是否审批完成 */
    @Excel(name = "是否审批完成")
    @ApiModelProperty("是否审批完成")
    private String isSpwc;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFactoryName(String factoryName) 
    {
        this.factoryName = factoryName;
    }

    public String getFactoryName() 
    {
        return factoryName;
    }
    public void setFactoryCode(String factoryCode) 
    {
        this.factoryCode = factoryCode;
    }

    public String getFactoryCode() 
    {
        return factoryCode;
    }
    public void setTaskId(String taskId) 
    {
        this.taskId = taskId;
    }

    public String getTaskId() 
    {
        return taskId;
    }
    public void setDanhao(String danhao) 
    {
        this.danhao = danhao;
    }

    public String getDanhao() 
    {
        return danhao;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setSpUserId(Long spUserId) 
    {
        this.spUserId = spUserId;
    }

    public Long getSpUserId() 
    {
        return spUserId;
    }
    public void setSpUserName(String spUserName) 
    {
        this.spUserName = spUserName;
    }

    public String getSpUserName() 
    {
        return spUserName;
    }
    public void setSpCode(String spCode) 
    {
        this.spCode = spCode;
    }

    public String getSpCode() 
    {
        return spCode;
    }
    public void setSpName(String spName) 
    {
        this.spName = spName;
    }

    public String getSpName() 
    {
        return spName;
    }
    public void setSpSolt(String spSolt) 
    {
        this.spSolt = spSolt;
    }

    public String getSpSolt() 
    {
        return spSolt;
    }
    public void setSpFlag(String spFlag) 
    {
        this.spFlag = spFlag;
    }

    public String getSpFlag() 
    {
        return spFlag;
    }
    public void setSpRemark(String spRemark) 
    {
        this.spRemark = spRemark;
    }

    public String getSpRemark() 
    {
        return spRemark;
    }
    public void setIsSpwc(String isSpwc) 
    {
        this.isSpwc = isSpwc;
    }

    public String getIsSpwc() 
    {
        return isSpwc;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("factoryName", getFactoryName())
            .append("factoryCode", getFactoryCode())
            .append("taskId", getTaskId())
            .append("danhao", getDanhao())
            .append("userName", getUserName())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("spUserId", getSpUserId())
            .append("spUserName", getSpUserName())
            .append("spCode", getSpCode())
            .append("spName", getSpName())
            .append("spSolt", getSpSolt())
            .append("spFlag", getSpFlag())
            .append("spRemark", getSpRemark())
            .append("isSpwc", getIsSpwc())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
